﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
 CodeBehind="SearchNTPlayers.aspx.cs" Inherits="Nivdal.SearchNTPlayers" Theme="SkinFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="basic_element">
    <div class="red_title">
        <asp:Label ID="BestPlayersTitleLabel" runat="server" CssClass="white_title" Text="<%$ Resources:Resource, NationalTeam_BestPlayersExplanation %>"
         ToolTip="<%$ Resources:Resource, NationalTeam_BestPlayersExplanation %>"></asp:Label>
    </div>
    <div class="padding5">
        <asp:GridView ID="PlayersGrid" runat="server" SkinID="BigProfessional" AutoGenerateColumns="false"
         AllowPaging="true" PageSize="50" DataSourceID="PlayersDataSource">
            <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
            <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Player %>">
                    <ItemTemplate>
                        <asp:Image ID="OnTeamImage" runat="server" ImageUrl="~/Images/Icons/vi.png" Visible='<%# Eval("IsOnTeam") %>'
                         ToolTip="<%$ Resources:Resource, NationalTeam_PlayerPartOfTeam %>" AlternateText="<%$ Resources:Resource, NationalTeam_PlayerPartOfTeam %>" />
                        <asp:HyperLink runat="server" ID="PlayerLink" NavigateUrl='<%# "~/Player.aspx?Id=" + Eval("PlayerId") %>'
                         Text='<%# Eval("PlayerName") %>' SkinId="GreenTitleHyperLink" ToolTip='<%# Eval("PlayerFullName") %>'></asp:HyperLink>
                    
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Team %>">
                    <ItemTemplate>
                        <asp:HyperLink ID="TeamLink" runat="server" NavigateUrl='<%# "~/TeamHomePage.aspx?TeamId=" + Eval("TeamId") %>'
                         Text='<%# Eval("TeamName") %>' SkinID="GreenTitleHyperLink"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Age %>">
                    <ItemTemplate>
                        <asp:Label ID="AgeLabel" runat="server" Text='<%# Eval("Age") %>' SkinID="GridLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_BestPositions %>">
                    <ItemTemplate>
                        <asp:Label ID="BestPositionsTitleLabel" runat="server" Text='<%# Eval("BestPositions") %>' SkinID="GridLabel"
                         ToolTip='<%# Eval("BestPositionsToolTip") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Label ID="CharismaHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_CharismaTitleLabel %>"  
                        ToolTip="<%$ Resources:Resource, Global_Charisma %>"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="CharismaLabel" runat="server" Text='<%# Eval("Charisma") %>' SkinID="GridLabel" 
                        ToolTip="<%$ Resources:Resource, Global_Charisma %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Label ID="ExperienceHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_ExperienceHeader %>"  
                        ToolTip="<%$ Resources:Resource, Global_Experience%>"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="ExperienceLabel" runat="server" Text='<%# Eval("Experience") %>' SkinID="GridLabel" ToolTip="<%$ Resources:Resource, Global_Experience %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Label ID="StrongFootHeaderLabel" runat="server" Text="<%$ Resources:Resource, Global_StrongFootHeader%>"  
                        ToolTip="<%$ Resources:Resource, Global_StrongFoot %>" ></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="StrongFootLabel" runat="server" Text='<%# Eval("StrongFootShort") %>' SkinID="GridLabel" 
                        ToolTip='<%# Resources.Resource.Global_StrongFoot + ": " + Eval("StrongFoot") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Player_BestRatings %>" >
                    <ItemTemplate>
                        <asp:Label ID="LastMatchRatingLabel" runat="server" Text='<%# Eval("LastMatchInfo") %>' SkinID="GridLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

            </Columns>     
         </asp:GridView>
     </div>
     </div>

     <asp:SqlDataSource ID="PlayersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_NTGetListOfCandidatesForNT" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, NationalTeam_BestPlayersPageTitle %>"
        CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
